<?php if (!empty($users)):?>
	<?php $last = count($users)-1;
		foreach($users as $i => $User):?>
		<div class="index_list <?php if($i==$last):?>last<?php endif;?>">
			<?php if($User->getImage()):?>
				<img src="/uploads/avatars/thumbnail_40_40_n/<?php echo $User->getImage()?>" />
			<?php else:?>
				<img src="/images/noimage.gif" />	
			<?php endif;?>
			<b><?php echo $User->getName()?></b> (ID:<?php echo $User->getId()?>)<br />
			<?php echo $User->getUsername()?><br />&nbsp;
		</div>
	<?php endforeach;?>
<?php else:?>
no users
<?php endif;?>